package com.bezdelnick.forum.dao;

import com.bezdelnick.forum.domain.Type;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 18.07.12
 * Time: 12:32
 * To change this template use File | Settings | File Templates.
 */
public interface ITypeDao {
    List<Type> loadTypes();
    Type getTypeById(long id);
    Type getTypeByName(String name);
    boolean insertType(Type type);
    boolean updateType(Type type);
    boolean deleteType(long id);
}
